package cn.yunhe.model;

/**
 * Orderbook entity. @author MyEclipse Persistence Tools
 */

public class Orderbook implements java.io.Serializable {

	// Fields

	private Integer id;
	private Orders orders;
	private Books books;
	private String quantity;
	private Double unitprice;

	// Constructors

	/** default constructor */
	public Orderbook() {
	}

	/** full constructor */
	public Orderbook(Orders orders, Books books, String quantity,
			Double unitprice) {
		this.orders = orders;
		this.books = books;
		this.quantity = quantity;
		this.unitprice = unitprice;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Orders getOrders() {
		return this.orders;
	}

	public void setOrders(Orders orders) {
		this.orders = orders;
	}

	public Books getBooks() {
		return this.books;
	}

	public void setBooks(Books books) {
		this.books = books;
	}

	public String getQuantity() {
		return this.quantity;
	}

	public void setQuantity(String quantity) {
		this.quantity = quantity;
	}

	public Double getUnitprice() {
		return this.unitprice;
	}

	public void setUnitprice(Double unitprice) {
		this.unitprice = unitprice;
	}

}